<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>SiteServer CMS 短信发送插件</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link href="../assets/css/font-awesome-4.7.0.min.css" rel="stylesheet" type="text/css" />
  <link href="../assets/css/bootstrap-4.1.0.min.css" rel="stylesheet" type="text/css" />
  <link href="../assets/css/siteserver-1.0.7.min.css" rel="stylesheet" type="text/css" />
</head>

<body class="p-0">
  <div id="main" class="m-t-15 m-b-15 m-l-15 m-r-15">
    <template v-if="pageLoad">

      <div class="card-box">

        <div class="row">
          <div class="col-lg-10">
            <h4 class="m-t-0 header-title">
              <b>选项设置</b>
            </h4>
            <p class="text-muted font-13">
              在此设置内容点击量选项
            </p>
          </div>
        </div>
      
        <div v-if="pageAlert" class="alert" v-bind:class="{ 'alert-warning': pageAlert.type === 'warning', 'alert-success': pageAlert.type === 'success', 'alert-danger': pageAlert.type === 'danger' }">
          <button v-on:click="pageAlert = null" class="close" data-dismiss="alert">×</button>
          <span v-html="pageAlert.html"></span>
        </div>
  
        <div class="form-group">
          <label>是否启用点击量统计</label>
          <select v-model="configInfo.isHitsDisabled" class="form-control">
            <option :value="false">启用点击量统计</option>
            <option :value="true">禁用点击量统计</option>
          </select>
          <small class="form-text text-muted">选择禁用点击量统计，原有数据仍将保留</small>
        </div>

        <template v-if="!configInfo.isHitsDisabled">

          <div class="form-group">
            <label>点击量统计方式</label>
            <select v-model="configInfo.isHitsCountByDay" class="form-control">
              <option :value="true">统计总点击量以及本日、本周、本月点击量</option>
              <option :value="false">仅统计总点击量</option>
            </select>
          </div>

        </template>

        <hr />

        <div class="text-center">
          <button class="btn btn-primary" v-on:click="btnSubmitClick">保 存</button>
        </div>

      </div>

    </template>
    <template v-else>
      <div class="text-center" style="margin-top: 100px">
        <img class="mt-3" src="../assets/images/loading.gif" />
        <p class="lead mt-3 text-nowrap">载入中，请稍后...</p>
      </div>
    </template>
  </div>
</body>

</html>
<script src="../assets/lib/es6-promise.auto.min.js"></script>
<script src="../assets/lib/axios-0.18.0.min.js"></script>
<script src="../assets/lib/jquery-1.9.1.min.js"></script>
<script src="../assets/lib/layer/layer-3.1.1.js"></script>
<script src="../assets/lib/vue-2.6.10.min.js" type="text/javascript"></script>

<script src="../assets/lib/vee-validate/vee-validate-2.2.2.js" type="text/javascript"></script>
<script src="../assets/lib/vee-validate/locale/zh_CN-2.2.2.js" type="text/javascript"></script>
<script src="../assets/js/validate.js" type="text/javascript"></script>

<script src="../assets/lib/sweetalert2-7.28.4.all.min.js" type="text/javascript"></script>
<script src="../assets/js/swal2.js" type="text/javascript"></script>

<script src="../assets/js/utils.js" type="text/javascript"></script>
<script src="settings.js" type="text/javascript"></script>
